package com.hmdp.utils;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_USER_KEY = "login:token:";
    public static final Long LOGIN_USER_TTL = 36000L;

    public static final Long CACHE_NULL_TTL = 2L;

    public static final Long CACHE_SHOP_TTL = 30L;
    public static final String CACHE_SHOP_KEY = "cache:shop:";

    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 10L;
    //秒杀券库存前缀
    public static final String SECKILL_STOCK_KEY = "seckill:stock:";
    //秒杀券订单前缀
    public static final String SECKILL_ORDER_KEY = "seckill:order:";
    public static final String BLOG_LIKED_KEY = "blog:liked:";
    public static final String FEED_KEY = "feed:";
    //店铺分类型存储地理坐标
    public static final String SHOP_GEO_KEY = "shop:geo:";
    public static final String USER_SIGN_KEY = "sign:";

    //自己定义的前缀
    public static final String LOCK_KEY_PRE = "lock:key:";

    //关注
    public static final String FOLLOW_KEY_PRE = "follow:";

    //粉丝的收件箱，接收推送消息
    public static final String FEED_KEY_PRE = "feed:";

    //签到
    public static final String SIGN_KEY_PRE = "sign:";

    //用户积分
    public static final String USER_POINT_PRE = "user:point:";

    //Unique Visitor统计
    public static final String UV_KEY_PRE = "uv:";

    //用户基本信息前缀
    public static final String USERDTOPLUS_KEY_PRE = "user:dto:plus:";

    //热点商铺KEY

    //热点博文
    public static final String HOT_BLOG_PRE = "cache:shop:blog:";
    //热点博文中的评论
    public static final String HOT_BLOG_COMMENT_PRE = "cache:shop:blog:comment:";

    //评论消息推送
    public static final String MESSAGE_COMMENT_KEY_PRE = "message:comment:";

    //用户评论消息新增计数箱
    public static final String MESSAGE_COUNT_KEY_PRE = "message:count:comment:";
}
